package com.liang.e;

import java.util.ArrayList;

public class MethodE {
    public static void main(String[] args) {
        ArrayList<String> arrayList = addElement(new ArrayList<String>(), "1", "2", "3", "4");
        System.out.println(arrayList);
    }

    public static <E> ArrayList<E> addElement(ArrayList<E> arrayList,E e1, E e2,E e3,E e4) {
        arrayList.add(e1);
        arrayList.add(e2);
        arrayList.add(e3);
        arrayList.add(e4);
        return  arrayList;
    }
}
